package com.lening.community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.community.dto.ShopAreaDto;
import com.lening.community.dto.ShopsDto;
import com.lening.community.mapper.ShopAreaMapper;
import com.lening.community.mapper.ShopsMapper;
import com.lening.community.pojo.ShopArea;
import com.lening.community.pojo.Shops;
import com.lening.community.service.ShopAreaService;
import com.lening.community.service.ShopsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ToDo:
 * @Author：潘万法
 * @date: 2024/6/3 17:05
 */
@Service
public class ShopsServiceImpl extends BaseServiceImpl<ShopsMapper, Shops, ShopsDto>
implements ShopsService {


    @Override
    public Page<Shops> page(ShopsDto shopsDto) {
        return this.baseMapper.page(shopsDto);
    }

    @Override
    public List<Shops> find() {
        return this.baseMapper.find();
    }

    @Override
    public int insert(Shops shops) {
        return this.baseMapper.insert(shops);
    }

    @Override
    public int getCount() {
        return this.baseMapper.getCount();
    }

    @Override
    public Shops getById(Long id) {
        return this.baseMapper.getById(id);
    }
}
